package online.sanen.mhdt.entity.equip;

import online.sanen.mhdt.RandomeTool;
import online.sanen.mhdt.entity.attr.DEF;
import online.sanen.mhdt.entity.attr.MP;

/**
 * 帽子
 */
public abstract class Cap extends Equip {
    protected MP mp;
    protected DEF def;
    /**
     * 装备属性取值范围
     */
    protected int minMp;
    protected int maxMp;
    protected int minDef;
    protected int maxDef;

    protected void initBaseAttr() {
        mp = new MP(RandomeTool.equipBaseAttr(minMp, maxMp));
        def = new DEF(RandomeTool.equipBaseAttr(minDef, maxDef));
    }

    public MP getMp() {
        return mp;
    }

    public void setMp(MP mp) {
        this.mp = mp;
    }

    public DEF getDef() {
        return def;
    }

    public void setDef(DEF def) {
        this.def = def;
    }

    public int getMinMp() {
        return minMp;
    }

    public void setMinMp(int minMp) {
        this.minMp = minMp;
    }

    public int getMaxMp() {
        return maxMp;
    }

    public void setMaxMp(int maxMp) {
        this.maxMp = maxMp;
    }

    public int getMinDef() {
        return minDef;
    }

    public void setMinDef(int minDef) {
        this.minDef = minDef;
    }

    public int getMaxDef() {
        return maxDef;
    }

    public void setMaxDef(int maxDef) {
        this.maxDef = maxDef;
    }
}
